//
//  AgoraVideoBufferConverter.h
//  AgoraPremium
//
//  Created by GongYuhua on 2017/12/4.
//  Copyright © 2017年 Agora. All rights reserved.
//

#import <Foundation/Foundation.h>
@import CoreMedia;

// TODO：fix，无法找到桥接文件中的宏定义 AGORA_SDK_SOURCE
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
//#import "../../../media_sdk3/include/api/exported/objc/AgoraMediaIO.h"


@interface AgoraVideoBufferConverter : NSObject
+ (CVPixelBufferRef _Nonnull)convertRawData:(void * _Nonnull)rawData toNV12OrBGRAPixelBufferWithFormat:(AgoraVideoPixelFormat)format size:(CGSize)size;

+ (CVPixelBufferRef _Nonnull)convertToNV12FromI420PixelBuffer:(CVPixelBufferRef _Nonnull)buffer;
@end
